<?php
require_once( "../Model/db_Review.cls.php");

class Review
{
	private $clsReview; // controllers Restaurant
	public function __construct()
	{
		$this->clsReview = new db_Review();
	}
	public function selectReview($ResID)
	{
		if(Empty($ResID))
			return false;
		$data = $this->clsReview->selectAll($ResID);
		$result = array('Status'=>'Success','Object'=>$data);
		return $result;
	}
	public function insertReview($param = array())
	{
		if(empty($param))
			return false;
		foreach ($param as $key => $value)
		{
			$param[$key] = !empty($param[$key])?$param[$key]:"";
		}
		return $this->clsReview->insert($param);
	}
}
?>